package com.shangke.corejava.ch7.homework2;
/*
 * 设计一个父类，保存学生的共同属性
 */
public class Student {
	private int studentNo;//学号
	private String name;//姓名
	private String sex;
	private int age;
	
	private double midtermGrade;
	private double finalExamGrade;
	
	//进行封装
	public Student() {
		super();
	}
	public Student(int studentNo, String name, String sex, int age, double midtermGrade, double finalExamGrade) {
		super();
		this.studentNo = studentNo;
		this.name = name;
		this.sex = sex;
		this.age = age;
		this.midtermGrade = midtermGrade;
		this.finalExamGrade = finalExamGrade;
	}
	public int getStudentNo() {
		return studentNo;
	}
	public void setStudentNo(int studentNo) {
		this.studentNo = studentNo;
	}
	public String getName() {
		return name;
	}
	public void setName(String name) {
		this.name = name;
	}
	public String getSex() {
		return sex;
	}
	public void setSex(String sex) {
		this.sex = sex;
	}
	public int getAge() {
		return age;
	}
	public void setAge(int age) {
		this.age = age;
	}
	public double getMidtermGrade() {
		return midtermGrade;
	}
	public void setMidtermGrade(double midtermGrade) {
		this.midtermGrade = midtermGrade;
	}
	public double getFinalExamGrade() {
		return finalExamGrade;
	}
	public void setFinalExamGrade(double finalExamGrade) {
		this.finalExamGrade = finalExamGrade;
	}
	//定义抽象类
	
	
}
